package com.lqq.mapper;

import com.github.pagehelper.PageInfo;
import com.lqq.dto.UserDetailDto;
import com.lqq.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author qingqing.liang
 * @create 2018-01-30
 **/
@Repository
@Mapper
public interface UserMapper {

    User getById(Long id);

    User getUserDetailById(Long id);

    UserDetailDto getUserDetailById2(Long id);

    List<User> selectUsers();

    void updateBatch(Map<String,Object> param);

    List<User> findByStatusAndNameLike(Map<String,Object> param);

    List<User> chooseWhenOtherwise(Map<String,Object> param);
}
